package com.commit.mapper;

import com.commit.domain.Likes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author:zyh
 * @Time:2021-02-28-15:27
 * @email:1269231889@qq.com
 */
@Mapper
public interface LikeMapper {
    //插入
    void insert(Likes likes);
    //删除
    void del(@Param("userId") Integer userId,@Param("questionId")Integer ansId);
    //根据userId，answerId查询
    Likes findOne(@Param("userId")Integer userId,@Param("answerId") Integer answerId);
}
